They refer to the titles/subtitles on a webpage. Search engines use the headings to index the structure and content of web pages.
Note: Browsers automatically add some white space (a margin) before and after a heading.